home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  1.5 KB  |  55 lines

  1. //
  2. //  $VER: Text.h        1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Bug Fixes:
  24. //                        - Der Konstruktor ohne Parameter hat die Basisklasse
  25. //                          falsch konstruiert.
  26. //                        Änderungen
  27. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  28. //
  29.  
  30. #ifndef CPP_TWIMUI_TEXT_H
  31. #define CPP_TWIMUI_TEXT_H
  32.  
  33. #ifndef CPP_TWIMUI_AREA_H
  34. #include <classes/twimui/area.h>
  35. #endif
  36.  
  37. class MUIText : public MUIArea
  38.     {
  39.     protected:
  40.         virtual const ULONG ClassNum() const;
  41.     public:
  42.         MUIText(const struct TagItem *t) : MUIArea(MUIC_Text) { init(t); };
  43.         MUIText(const Tag t, ...);
  44.         MUIText() : MUIArea(MUIC_Text) { };
  45.         MUIText(const MUIText &);
  46.         virtual ~MUIText();
  47.         MUIText &operator= (const MUIText &);
  48.         void Contents(const STRPTR p) { set(MUIA_Text_Contents,(ULONG)p); };
  49.         STRPTR Contents() const { return((STRPTR)get(MUIA_Text_Contents,NULL)); };
  50.         void PreParse(const STRPTR p) { set(MUIA_Text_PreParse,(ULONG)p); };
  51.         STRPTR PreParse() const { return((STRPTR)get(MUIA_Text_PreParse,NULL)); };
  52.     };
  53.  
  54. #endif
  55.